/*
 * @Date: 2022-02-18 09:54:49
 * @Author: 陶子
 * @LastEditTime: 2022-07-05 11:27:51
 * @FilePath: \jk_one-stop_pc\src\views\workManagement\reportForm\statisticsColumn.js
 * @pageName: 这是--(生产工单所有的列)--页面
 */
export let columns = [
  {
    title: '工单编号',
    dataIndex: 'orderCode',
    ellipsis: true,
    align: 'left',
    fixed: 'left',
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'orderCode',
    },
    sorter: true,
  },
  {
    title: '产品名称',
    dataIndex: 'goodsName',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'goodsName',
    },
  },

  {
    title: '规格',
    dataIndex: 'goodsSpec',
    ellipsis: true,
    width: 120,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'goodsSpec',
    },
  },
  {
    title: '基本单位',
    dataIndex: 'goodsBasicUnitText',
    ellipsis: true,
    width: 90,
    scopedSlots: { customRender: 'goodsBasicUnitText' },
  },
  {
    title: '计划生产数量',
    dataIndex: 'num',
    ellipsis: true,
    width: 120,
    scopedSlots: { customRender: 'num' },
    sorter: true,
  },
  {
    title: '计划开始时间',
    dataIndex: 'planStartTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'planStartTime' },
    sorter: true,
  },
  {
    title: '计划完成时间',
    dataIndex: 'planEndTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'planEndTime' },
    sorter: true,
  },
  {
    title: '生产状态',
    dataIndex: 'statusListStr',
    ellipsis: true,
    width: 110,
    scopedSlots: {
      filterDropdown: 'selectDropdown',
      filterIcon: 'selectIcon',
      customRender: 'statusName',
    },
  },
  {
    title: '已生产数量',
    dataIndex: 'producedNum',
    ellipsis: true,
    width: 120,
    scopedSlots: {
      customRender: 'producedNum',
    },
  },
  {
    title: '负责人',
    dataIndex: 'principalName',
    ellipsis: true,
    width: 100,
    scopedSlots: {
      filterDropdown: 'selectPeople',
      filterIcon: 'peopleIcon',
      customRender: 'principalName',
    },
  },
  {
    title: '关联订单',
    dataIndex: 'relevanceOrder',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'relevanceOrder',
    },
    sorter: true,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'createTime' },
    sorter: true,
  },
  {
    title: '工单来源',
    dataIndex: 'orderSourceName',
    ellipsis: true,
    width: 100,
  },
  {
    fixed: 'right',
    title: '操作',
    align: 'left',
    width: 114,
    dataIndex: 'actions',
    scopedSlots: { customRender: 'actions' },
  },
]
export let allColumn = [
  {
    title: '工单编号',
    dataIndex: 'orderCode',
    ellipsis: true,
    width: 200,
    fixed: 'left',
    align: 'left',
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'orderCode',
    },
    sorter: true,
  },
  {
    title: '产品编号',
    dataIndex: 'goodsCode',
    ellipsis: true,
    width: 200,
    scopedSlots: { customRender: 'goodsCode' },
  },
  {
    title: '产品名称',
    dataIndex: 'goodsName',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'goodsName',
    },
  },
  {
    title: '规格',
    dataIndex: 'goodsSpec',
    ellipsis: true,
    width: 120,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'goodsSpec',
    },
  },
  {
    title: '物料类型',
    dataIndex: 'goodsTypeName',
    ellipsis: true,
    width: 110,
    scopedSlots: { customRender: 'goodsTypeName' },
  },
  {
    title: '基本单位',
    dataIndex: 'goodsBasicUnitText',
    ellipsis: true,
    width: 90,
    scopedSlots: { customRender: 'goodsBasicUnitText' },
  },
  {
    title: '计划生产数量',
    dataIndex: 'num',
    ellipsis: true,
    width: 120,
    scopedSlots: { customRender: 'num', },
    sorter: true,
  },
  {
    title: '计划开始时间',
    dataIndex: 'planStartTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'planStartTime' },
    sorter: true,
  },
  {
    title: '计划完成时间',
    dataIndex: 'planEndTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'planEndTime' },
    sorter: true,
  },
  {
    title: '生产状态',
    dataIndex: 'statusListStr',
    ellipsis: true,
    width: 110,
    scopedSlots: {
      filterDropdown: 'selectDropdown',
      filterIcon: 'selectIcon',
      customRender: 'statusName',
    },
  },
  {
    title: '已生产数量',
    dataIndex: 'producedNum',
    ellipsis: true,
    width: 120,
    scopedSlots: {
      customRender: 'producedNum',
    },
  },
  {
    title: '负责人',
    dataIndex: 'principalName',
    ellipsis: true,
    width: 100,
    scopedSlots: {
      filterDropdown: 'selectPeople',
      filterIcon: 'peopleIcon',
      customRender: 'principalName',
    },
  },
  {
    title: '关联订单',
    dataIndex: 'relevanceOrder',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'relevanceOrder',
    },
    sorter: true,
  },
  {
    title: '创建人',
    dataIndex: 'createByName',
    ellipsis: true,
    width: 130,
    scopedSlots: {
      filterDropdown: 'selectPeople',
      filterIcon: 'peopleIcon',
      customRender: 'createByName',
    },
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'createTime' },
    sorter: true,
  },
  {
    title: '工单来源',
    dataIndex: 'orderSourceName',
    ellipsis: true,
    width: 100,
  },
  {
    title: '备注',
    dataIndex: 'remark',
    ellipsis: true,
    width: 150,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'remark',
    },
  },
]

